/*************************************************************************
 Copyright (C) Unpublished Unis Software, Inc. All rights reserved.
 Unis Software, Inc., Confidential and Proprietary.

 This software is subject to copyright protection
 under the laws of the Public of China and other countries.

 Unless otherwise explicitly stated, this software is provided
 by Unis "AS IS".
 *************************************************************************/
package com.unis.service.car;

import java.util.List;

import com.unis.model.BaseModel;
import com.unis.model.car.Car;

/**
 * @author CSJ (email:raulcsj@163.com)
 * @since 2013-01-11
 */
public interface CarService {

    /****************************************
     * Insert a instace of Car
     ****************************************/
    void insert(Car car) throws Exception;

    /****************************************
     * Insert instaces of Car
     ****************************************/
    void batchInsert(Car car) throws Exception;

    /****************************************
     * Delete a instace of Car
     ****************************************/
    void delete(Car car) throws Exception;

    /****************************************
     * Delete instaces of Car
     ****************************************/
    void batchDelete(Car car) throws Exception;

    /****************************************
     * Update a instace of Car
     ****************************************/
    void update(Car car) throws Exception;

    /****************************************
     * Query instaces of Car
     ****************************************/
    List<BaseModel> queryAsList(Car car) throws Exception;

    /****************************************
     * Query a instaces of Car
     ****************************************/
    BaseModel queryAsObject(Car car) throws Exception;
}
